import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class demo02 {
    //抄送列表
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            String name=sc.nextLine();
            String str=sc.nextLine();
            int i=0;
            int end=0;
            Set<String> s=new HashSet<>();
            while (i<name.length()){
                if('\"'==name.charAt(i)){
                    end=name.indexOf('\"',i+1);
                    s.add(name.substring(i+1,end));
                    i=end+2;
                }else {
                    end=name.indexOf(',',i+1);
                    if(-1==end){
                        s.add(name.substring(i,name.length()));
                        break;
                    }
                    s.add(name.substring(i,end));
                    i=end+1;
                }
            }
            if(s.contains(str)){
                System.out.println("Ignore");
            }else{
                System.out.println("Important!");
            }
        }
    }
}
